<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
    request.setAttribute("contextPath", request.getContextPath());
%>
<html>
<head>
<title>List All Books</title>
</head>
<body>
	<a href="${contextPath }/admin/home">返回后台</a>
	
	<%-- <a href="${contextPath }/admin/addBookView">新增书籍</a> --%>
	<br/><br/>
	  <!-- 	private String orderId;
	private int userId ;
	public String orderTime;
	public double total;
	public int status;
	public int quantity;
	public String address;            -->
	<table width="80%" border="1">
		<tr>
			<td>orderId</td>
			<td>userId</td>
			<td>orderTime</td>
			<td>total</td>
			<td>status</td>
			<td>quantity</td>
			<td>address</td>
			<!-- <td width="10%">操作</td> -->
		</tr>
		<c:forEach items="${orderList }" var="ol">
			<tr>
				<td>${ol.orderId }</td>
				<td>${ol.userId }</td>
				<td>${ol.orderTime }</td>
				<td>${ol.total }</td>
				<td>${ol.status }</td>
				<td>${ol.quantity }</td>
				<td>${ol.address }</td>
			<%-- 	<td>
				    <a href="${contextPath }/admin/updateOrderById/${ol.orderId }">编辑</a>
				    &nbsp;&nbsp;
				    <a href="${contextPath }/admin/deleteBook/${ol.orderId }">删除</a>
				</td> --%>
			</tr>
		</c:forEach>
	</table>
</body>
</html>
